import request from '@/utils/request.js'

// 注册
export const register = (username, password, repassword) => {
  return request.post('/api/reg', {
    username,
    password,
    repassword
  })
}

// 登录
export const login = (username, password) => {
  return request.post('/api/login', {
    username,
    password
  })
}
